﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BG_NewsEdit.aspx.cs" Inherits="BG_Manage_BG_NewsEdit" %>

<%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>修改新闻</title>
    <link href="BG_CSS/Main.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" language="javascript">
function setAuthor(str)
{
	var obj=document.form1.txtAuthor;
	obj.value=str;
}				
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div>
            <!-- 顶部栏-->
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="17" valign="top" background="BG_IMG/Main/mail_leftbg.gif">
                        <img src="BG_IMG/Main/left-top-right.gif" width="17" height="29" /></td>
                    <td valign="top" background="BG_IMG/Main/content-bg.gif">
                        <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
                            <tr>
                                <td height="31">
                                    <div class="titlebt">修改新闻</div>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td width="16" valign="top" background="BG_IMG/Main/mail_rightbg.gif">
                        <img src="BG_IMG/Main/nav-right-bg.gif" width="16" height="29" /></td>
                </tr>
                <!-- 中部栏-->
                <tr>
                    <td valign="middle" background="BG_IMG/Main/mail_leftbg.gif" style="height: 19px">
                    </td>
                    <td valign="top" bgcolor="#F7F8F9" style="height: 19px">
                        <div align="center">
                            <asp:Label ID="smslabel" runat="server" Height="8px" Width="100%"></asp:Label>
                        </div>
                        
                        <!--*********************************************************************************************--> 
                        <table class="border">
                            <td>
                                <blockquote>
                                    <br />
                                    <div style="margin: 4px 0px">
                                        新闻类型：
                                         <asp:TextBox ID="txtType" runat="server" BackColor="White" BorderColor="Black" ReadOnly="True"></asp:TextBox>  
                                    </div>
                                    <div style="margin: 4px 0px">
                                        新闻标题：
                                        <input id="txtTitle" type="text" maxlength="100" size="80" name="txtTitle" runat="server">
                                        <asp:RequiredFieldValidator ID="Requiredfieldvalidator2" runat="server" NAME="Requiredfieldvalidator2"
                                            Display="Dynamic" ErrorMessage="*请输入新闻标题" ControlToValidate="txtTitle"></asp:RequiredFieldValidator>
                                    </div>
                                    <div style="margin: 4px 0px">
                                        新闻属性：
                                        <asp:CheckBox ID="Headline" runat="server"></asp:CheckBox>
                                        头条新闻&nbsp;&nbsp;|
                                        <asp:CheckBox ID="HighLight" runat="server"></asp:CheckBox>
                                        标题醒目
                                    </div>
                                    <br />
                                    <div style="margin: 4px 0px" align="left">
                                        <CE:Editor ID="Editor1" runat="server" EditorWysiwygModeCss="~/CuteSoft_Client/CuteEditor/Themes/example.css"
                                            ThemeType="Office2007" Height="400px" Width="770px" AutoConfigure="Compact">
                                        </CE:Editor>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*请输入新闻内容"
                                            ControlToValidate="Editor1"></asp:RequiredFieldValidator>
                                    </div>
                                    <br />
                                    <div style="margin: 4px 0px">
                                        新闻简介：
                                        <textarea id="txtSummary" name="txtSummary" rows="3" cols="75" runat="server" onkeydown='if (this.value.length>=200){event.returnValue=false}'>注意：新闻简介长度为0-200字</textarea>
                                        <asp:CustomValidator ID="CustomValidator1" runat="server" Display="Dynamic" ErrorMessage="*简介最多200字" ControlToValidate="txtSummary"></asp:CustomValidator>
                                    </div>
                                    <div style="margin: 4px 0px">
                                        新闻来源：
                                        <input id="txtSource" type="text" maxlength="100" size="60" name="txtSource" runat="server">
                                    </div>
                                    <div style="margin: 4px 0px">
                                        新闻作者：
                                        <input id="txtAuthor" type="text" maxlength="100" size="60" name="txtAuthor" runat="server" />
                                        ← <a href="javascript:setAuthor('SEA')">SEA</a>, <a href="javascript:setAuthor('未知')">
                                            未知</a>, <a href="javascript:setAuthor('佚名')">佚名</a>
                                    </div>
                                    <div style="margin: 4px 0px">
                                        新闻展示图片地址：
                                        <input id="txtImageURL" type="text" maxlength="100" size="60" name="txtImageURL" runat="server" style="width: 300px" />（*可空缺*）
                                    </div>
                                    <br />
                                    <br />
                                    <asp:Button ID="Submit" runat="server" Text="· 修改完成-提交 ·" OnClick="Submit_Click"></asp:Button>
                                </blockquote>
                            </td>
                        </table>
                       <!--*********************************************************************************************--> 

                    </td>
                    <td background="BG_IMG/Main/mail_rightbg.gif" style="height: 19px">
                    </td>
                </tr>
                <!-- 底部栏-->
                <tr>
                    <td valign="bottom" background="BG_IMG/Main/mail_leftbg.gif">
                        <img src="BG_IMG/Main/buttom_left2.gif" width="17" height="17" /></td>
                    <td background="BG_IMG/Main/buttom_bgs.gif">
                        <img src="BG_IMG/Main/buttom_bgs.gif" width="17" height="17"></td>
                    <td valign="bottom" background="BG_IMG/Main/mail_rightbg.gif">
                        <img src="BG_IMG/Main/buttom_right2.gif" width="16" height="17" /></td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
